package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author lijie
 * @date 2023/7/4 17:39
 * @description DeliveryCompanyEnum
 */
@AllArgsConstructor
public enum DeliveryCompanyEnum implements IEnum
{
    /**
     * 达达配送
     */
    DADA(0,"达达配送"),
    /**
     * 顺丰配送
     */
    SF(1,"顺丰同城"),
    MT(2,"美团配送"),
    ;
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    public int getCode()
    {
        return code;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public Integer getValue()
    {
        return code;
    }
}
